@echo off

REM Check out googlecode source code:
echo Checking out googlecode source code...
svn up

REM Check out quake3 source code:
echo Checking out quake3 source code...
svn co svn://svn.icculus.org/quake3/trunk quake3

REM Patch the source:
echo Patching original source code...
cd quake3
patch -p0 -N < ..\patchQuakeSource.txt
cd ..

REM Add QV, IniParser and genetic dirs:
echo Copying QV, IniParser and genetic dirs.
xcopy /S /E /Y /R /I resources\genetic quake3\genetic
xcopy /S /E /Y /R /I resources\QV quake3\code\QV
xcopy /S /E /Y /R /I resources\IniParser quake3\code\IniParser

REM Copy msvc8 dir
echo Copying MSVC8 Directory.
xcopy /S /E /Y /R /I resources\msvc8 quake3\code\win32\msvc8
